package common.utils;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;

public class DateUtil
{

	static public String dateToString(Date date)
	{
		return dateToString(date, "yyyy/MM/dd");
	}

	static public String dateToString(Date date, String formatString)
	{
		SimpleDateFormat format = new SimpleDateFormat(formatString);
		format.setTimeZone(TimeZone.getDefault());
		String result = format.format(date);
		return result;
	}
}
